var express = require("express");
var app = express();
app.set("view engine", "jade");
app.use(express.static(__dirname + "/public"));
app.use("/pictures", express.static(__dirname + "/pictures"));
app.use("/", require("./routes/"));
app.get("/", function (req, res, next) {
	res.render("index");
});
var server = app.listen(process.env.PORT || 80, function () {
	var host = server.address().address;
	var port = server.address().port;
	console.log("Server listening at http://%s:%s", host, port);
});